package com.xiaofeng.Hello.test;

public class phone {
        //属性
        String brand;
        double price;
        //方法

        //构造方法
        public phone(){
            //无参构造方法
        }
        public phone(String brad,double price){
            this.brand=brad;
            this.price=price;
        }
        public void call(){
            System.out.println("打电话");
        }
        public void playGame(){
            System.out.println("手机在玩游戏");
        }
        public void setBrand(String brad){
            this.brand=brad;
        }
        public void setPrice(double price){
            this.price=price;
        }
        public String getBrand(){
            return this.brand;
        }
        public double getPrice(){
            return this.price;
        }

}
